// -----------------------------------------------
// Author:     code34 nicolas_boiteux@yahoo.fr
// Edited by:  Neumatic
// Warcontext: Enums weapons
// -----------------------------------------------

private ["_objectype","_objectname","_object","_count","_weapons","_displayname","_displaynames"];

_weapons = [];
_displaynames = [];
_count = count (configFile >> "CfgWeapons");

for "_i" from 0 to (_count - 1) do {
	_object = (configFile >> "CfgWeapons") select _i;
	if (isClass _object) then {
		if (getNumber (_object >> "scope") == 2) then {
			_objectname = configName _object;
			_objectype = getNumber (_object >> "type");
			_displayname = toLower (getText (_object >> "DisplayName"));
			if !(_displayname in _displaynames) then {
				_displaynames = _displaynames + [_displayname];
				//if(_objectype < 4097) then {
					_weapons = _weapons + [_objectname];
				//};
			};
		};
	};
};

_weapons;